//---------------------------------------------------------------------------

#ifndef PathValidityH
#define PathValidityH
#include "Main.h"
#include "ChessBoard.h"
//---------------------------------------------------------------------------
class PathValidity{
	public:
		bool Judge(Pair, Pair, ChessBoard&);
		bool VertexInArray(Pair*, Pair*, ChessBoard&);
		void ResetArray();
		void CTransform(int&, int&);
	private:
		Pair* MakeAdjacencyList(Pair*, ChessBoard&);
		bool CheckNodeNotIn(int, int);
		static Pair* array[20];
		static int index;
};

Pair* PathValidity::array[20] = {NULL};
int PathValidity::index = 0;
//---------------------------------------------------------------------------
#endif
